making json java/jackson compatible