json2apex icon indicating copy to clipboard operation
json2apex copied to clipboard

Generate strongly typed apex code from a json structure.

Results 13 json2apex issues
Sort by recently updated
recently updated
newest added

theres an issue if the JSON you are using contains fields called Time or end in Exception it doesn't seem to realise this and escape them like Type

While dealing with #36 I also saw that the Play! 1.x build pack is deprecated as well. Need to migrate to Play 2.x or something else.

Addresses the concerns outlined in https://github.com/superfell/json2apex/issues/32

The following JSON: `{"example": [{"foo": null}, {"foo": "bar"}]}` Will generate the following APEX: ` if (text == 'foo') { foo = parser.readValueAs(Object.class); }` And when executed will incur the following...

I'm trying to use this for Shopify Orders and a few things are falling into this Object category which results in not being able to save since an object constructor...

When the JSON contains an array/list the naming is rather unconventional with regard plurals. Given the following Json ``` {"accountId":"EX1-234-567890","description":"Unit Test JSON","refPeriod": "2019-02-01","actionDate":"2019-03-31","lines":[ {"productId":"b2c-01","description":"service","qty":"1","unitPrice":"2.00"}, {"productId":"b2b-01","description":"devices","qty":"2","unitPrice":"2.00"}, {"productId":"b2x-01","description":"overage","qty":"3","unitPrice":"2.00"}]} ``` **Actual Behaviour**: The...

e.g. enter JSON2.Apex and it'll try and generate a class with that name. it should error or fix it up to a valid classname

This piece of code: ```json { "new": 2, "Integer": { "class": false, "interface": "awd" }, "a": [ { "b": 2, "f": false }, { "f": [ "f", false, { "k":...

e.g, given [ { "id" : "a" }, { "id" :"b", name:"bob" }] it should be able to work out that the first array entry's type is covered by the...