Go Down

Topic: Using JSON library with Arduino (Read 142 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"


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)


Or did you get it somewhere else?

Ya the same one ,


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




It may help if you posted his response to this forum, and explain what you "didn't get"

Nick Gammon

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

More info:

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!

via Egeo 16
Torino, 10131