Cello icon indicating copy to clipboard operation
Cello copied to clipboard

JSON Serialization

Open radare opened this issue 11 years ago • 7 comments

Currently, libCello support binary serialization, but it would be great if it supports JSON for parsing and serializing libCello data structures.

radare avatar Jul 25 '13 13:07 radare

Yeah this would be great. Probably not too difficult to add in either.

orangeduck avatar Jul 25 '13 13:07 orangeduck

Seconded. I would start using libCello tomorrow if it had this.

xcthulhu avatar Jul 29 '13 12:07 xcthulhu

Hello guys, i just "meet" Cello, and want to start collaborating with this issue, but i'm not a C expert. Yet, can i help in this project (at this issue to be more exactly)?

xshifty avatar Dec 28 '14 21:12 xshifty

Hi all. I've made some progress on this issue. In fact I have a protoype or sorts working but it depends on various changes to the core. I'll probably upload it once I have something decent working on the web framework stuff.

orangeduck avatar Dec 29 '14 13:12 orangeduck

.... :-(

q2dg avatar Aug 10 '18 21:08 q2dg

I'm interested in using this feature as well, because it provides a generalised serialisation format between systems built using Cello and most other systems.

zcaudate avatar May 13 '21 11:05 zcaudate

I have found that a very robust remote system can be built using:

  • socket server with a simple protocol (my choice is the redis protocol)
  • json serialisation of a common datastructure (maps/array)

I've implemented a bunch of these small redis-protocol based servers in clojure, lua, python and js. I did try with basic c a while back but the structure had no maps. If json serialization tcan be created on top of the Cello datastructures, then it'd be super easy to send and receive messages to the tiny runtime that Cello provides.

zcaudate avatar May 13 '21 11:05 zcaudate