Fixed incorrect generated code for Typed json.
Added extensionmethod for typed json.