Initial working json-smart implementation