Implementation to deep convert Groovy objects to JSON