skip to Main Content

Json – save a string in dictionary

I have in following string: [{"key":"cod1","value":["RR4","RR6"]},{"key":"cod2","value":["RR2","RR3"]},{"key":"cod3","value":["RR1","RR2"]}] and I want to save it in a dictionary like this: Dictionary<string, List> The project is made in C# and to try to do it I use the following statement: Dictionary<string, List<string>> dic =…

VIEW QUESTION

Split large JSON file into smaller files

I have a need to split very large json file (20GB) into multiple smaller json files (Say threshold is 100 MB). The Example file layout looks like this. file.json [{"name":"Joe", "Place":"Denver", "phone_number":["980283", "980284", "980285"]},{"name":"kruger", "Place":"boston", "phone_number":["980281", "980282", "980283"]},{"name":"Dan", "Place":"Texas","phone_number":["980286", "980287",…

VIEW QUESTION
Back To Top
Search