I also tried to create geometry extract from JSON and same thing work well un Rhino display but not in Shapediver. Here is the file CALL-S~2.GH (15.2 KB)
Thx helping me!
It seems the System.Text.Json package is not standard and needs to be installed on the servers.
You can force your script to require the installation by using this directive at the beginning:
#r "nuget: System.Text.Json, 9.0.2"
I tried this and made the script work on ShapeDiver. Note however, that it means the library has to be installed on the fly before running your script, which typically takes some additional time. We will pre-install the library on the servers soon, so this step can be skipped.
In my script I use boolean data extract from a JSON return for an automatic color change in my shapediver file. I use a Stream filter in grasshopper to change the color and it was running well in Shapediver before (from boolean directly from grasshopper) and its working well in Rhino
As you explain to me earlier this month. Can I force my script to require the installation ba a directive in my C# Script? (nuget" fonction?)
Thx!