interactive-matter / aJson

aJson is an Arduino library to enable JSON processing with Arduino. It easily enables you to decode, create, manipulate and encode JSON directly from and to data structures.
http://interactive-matter.org/2010/08/ajson-handle-json-with-arduino/
567 stars 136 forks source link

objects on arduino #59

Open jhoogeboom opened 10 years ago

jhoogeboom commented 10 years ago

A question about the read me:

This is an object. We're in C. We don't have objects. But we do have structs. Therefore the objects are translated into structs, with all the drawbacks it brings.

If I'm not mistaken, arduino supports a c/c++ implementation and should have not problems with objects and instances.

Wouldn't that make much more sense for a library like this?

interactive-matter commented 10 years ago

yes, but at time of writing of this library there was no 'new' which made it impossible to create new objects on the fly - which renders objects again a tad useless (if you do not hack around this, which is surely possible)