Adapted from JSON3 to cassandraMAP.

Edited in order to be coherent with the cassandra branch.