✅ How do i convert .json to .db for LiteDB?
i jave a json files and i want to convert them to one .db file. whats the best way to do it?
13 Replies
those are entirely different/incompatible formats
so you'll need to write a program that reads in the json and writes out a db file
yeah, thats what i meant. i would easily do it, but json has places like this and i dont know how to get them
what do you mean by get?
what place?
place that has several values (label and scaling) i cant just create a class for them, cause they are different. in some places its 1, 5, 11, 17, in some - 3, 6, 9
and other variations
the "scaling" object maps to a
Dictionary<string, string>
$jsongen
Instantly parse JSON in any language | quicktype
Whether you're using C#, Swift, TypeScript, Go, C++ or other languages, quicktype generates models and helper code for quickly and safely reading JSON in your apps. Customize online with advanced options, or download a command-line tool.
Convert JSON to C# Classes Online - Json2CSharp Toolkit
Convert any JSON object to C# classes online. Json2CSharp is a free toolkit that will help you generate C# classes on the fly.
omg thank you, whank you so much
In VS you can also do edit -> paste special -> json as classes
Rider has something similar as well
can you help me with this?.. it just wont work
can you not model your entire document as a class?
you shouldn't be doing manual things with jarray/etc
i just found some guide, i dunno.. i need to convert the whole json to a list, so i can do something with it
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View