cleaned up json strings a bit with malloc.  need to free the objects now