Simple JSON parser which I can include in my code

  • Thread starter Thread starter ananda vardhana
  • Start date Start date
A

ananda vardhana

Guest
Hello,

I have this simple JSON file. I can read it and print and this how it looks. I Googled and there are many many parsers but all involve including a library. I can't do that in my project. All I can do cut and paste the parser inside my code. I tried writing on my own it was too clumsy. So if any one knows a simple copy/paste type json parser kindly let me know and pass the code. At the end of the parsing I need the values of lumen, volt, watts and current values available as integers for my usage.

Thanks

{

"myJsonFile": "1.0",
"light" : {
"lumen": 40,
"volt": 110,
"watts": 50,
"current": 10
}
}

Continue reading...
 
Back
Top