Bunny83 / SimpleJSON

A simple JSON parser in C#
MIT License
735 stars 294 forks source link

About the problem that'SimpleJson' cannot be used #43

Closed RanX12 closed 3 years ago

RanX12 commented 3 years ago

Hello, I use mcs **.cs && mono ./ **.exe to run the csharp program in docker, which uses SimpleJson, but it will report an error, I want to ask about this What's the matter, is it because of missing commands in the command line? Please guide, thank you very much!

my Dockerfile: image image

Bunny83 commented 3 years ago

Sorry but I never have used docker ^^. What part of the SimpleJSON framework do you use? Keep in mind in that repository are several extension files which you may not use. For example the SimpleJSONUnity file only works when used in a Unity 3d project. When you just want the plain parser all you need is the SimpleJSON.cs file, nothing more.

You said

but it will report an error

this is very unspecific. What error do you get? I quickly added a conditional to the Unity extension file that should disable the Unity specific code, even when you include the Unity specific extension file in your project.

SimpleJSON itself does not require any external dependencies with the exception of the experimental compressed Binary format. Though the compression part is already guarded by a compiler switch that should be commented out by default, so that shouldn't be an issue.

Are you actually sure that the project you talk about uses THIS SimpleJSON? There are other frameworks that are also called like that, but often capitalized differently. In your post you said "SimpleJson".

Bunny83 commented 3 years ago

Since this doesn't seem to be related to SimpleJSON and I got no response I'll close this issue since there is no issue ^^.