hacky version of JSON server implemented