Added simpler convenience method for cleaner JSON generation.