Dirty prototype for M2MJSON client-side implementation