Hi Aditya, > On Feb 28, 2018, at 9:26 AM, Aditya Xavier <adityaxav...@me.com> wrote: > > HI Mynewt Team, > > Wanted some assistance on how to encode and decode the following JSON > string. > > {“name1":1,”name2”:"value2”,"name3":[{“name4":1,”name5":5}]} > > Because of sparse documentation, I used the Test sample; however am > stuck with encoding an array of objects. >
… > > I followed the example provided at > https://mynewt.apache.org/latest/os/modules/json/json_encode_object_entry > <https://mynewt.apache.org/latest/os/modules/json/json_encode_object_entry> > > And it gives me error :- > error: implicit declaration of function 'json_encode_object_start' > > Thanks, > Aditya Xavier. you need to #include <json/json.h> to see function/macro declarations.