Implements custom json scheme for easy extensibility