* Update json serialization for REST api in leshan-standalone
* Clean up object API