Two new generic methods for JSON manipulation