adding a json library wrapper