Go Down

Topic: Using JSON library with Arduino (Read 209 times) previous topic - next topic

In Arduino how to use both json generator and parser library in a single sketch ?

While i use ,
#include <JsonGenerator.h>
#include <JsonParser.h>

It throws errors stating,

"ArduinoJsonParser\utility\jsmn.cpp.o: In function `jsmn_parse(jsmn_parser*, char const*, jsmntok_t*, unsigned int)':
C:\Users\Guna Qruize\Documents\Arduino\libraries\ArduinoJsonParser\utility/jsmn.cpp:135: multiple definition of `jsmn_parse(jsmn_parser*, char const*, jsmntok_t*, unsigned int)'
ArduinoJson\JsonParser.cpp.o:C:\Users\Guna Qruize\Documents\Arduino\libraries\ArduinoJson\/JsonParser/jsmn.cpp:135: first defined here
ArduinoJsonParser\utility\jsmn.cpp.o: In function `jsmn_init(jsmn_parser*)':
C:\Users\Guna Qruize\Documents\Arduino\libraries\ArduinoJsonParser\utility/jsmn.cpp:250: multiple definition of `jsmn_init(jsmn_parser*)'
ArduinoJson\JsonParser.cpp.o:C:\Users\Guna Qruize\Documents\Arduino\libraries\ArduinoJson\/JsonParser/jsmn.cpp:250: first defined here"

rogerClark

I suspect the best source of answers will be the guy who wrote the code

Why don't you post an issue on GitHub (where I presume you got the code)

https://github.com/bblanchon/ArduinoJson

Or did you get it somewhere else?
Freelance developer and IT consultant
www.rogerclark.net

Ya the same one ,

https://github.com/bblanchon/ArduinoJson

....
The creator has already explained this scenario, but i dint get it

http://blog.benoitblanchon.fr/arduino-json-v2-0/

Thanks,
Guna




rogerClark

It may help if you posted his response to this forum, and explain what you "didn't get"
Freelance developer and IT consultant
www.rogerclark.net

Nick Gammon

Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy