Description
I tried to copy-paste some JSON into the UI and it didn't complain, but on save it failed with this error in the top bar (I had to inspect the DOM element to get the full info):
{'EXIT',{badarg,[{erlang,iolist_to_binary,
[[{[
{<<"guid">>, <<"c4cabe72-8635-411f-8bca-f853fcaa3d49">>},
{<<"isActive">>,true},
{<<"balance">>,<<"$1,092.00">>},
{<<"picture">>,<<"http://placehold.it/32x32">>},
{<<"age">>,34},
{<<"name">>,<<"Zamora Mccarthy">>},
{<<"gender">>,<<"male">>},
{<<"company">>,<<"Daido">>},
{<<"email">>,<<"zamoramccarthy@daido.com">>},
{<<"phone">>,<<"+1 (826) 469-2961">>},
{<<"address">>, <<"132 Rutland Road, Crawfordsville, Rhode Island, 3658">>},
{<<"about">>, <<"Elit elit eiusmod enim aliqua incididunt. Labore fugiat ad in excepteur do laborum. Sunt ullamco ex ad veniam nostrud ea ea anim duis. Officia velit Lorem sint esse magna. Nostrud Lorem est do sit ad. Quis laboris culpa cillum veniam enim commodo. Reprehenderit nisi fugiat consectetur non commodo cillum irure laborum duis commodo aliquip.\r\n">>},
{<<"registered">>, <<"2004-01-22T00:07:24 -01:00">>},
{<<"latitude">>,-89.913804},
{<<"longitude">>,39.005512},
{<<"tags">>, [<<"occaecat">>,<<"ut">>,<<"mollit">>, <<"voluptate">>,<<"ea">>,<<"dolor">>, <<"aute">>]},
{<<"friends">>,
[{[{<<"id">>,0}
,
]},
{[
,
]},
{[
,
]}]},
]}]]},
,
,
,
,
,
,
]}}
Here is the JSON to repro:
[
{
"id": 0,
"guid": "c4cabe72-8635-411f-8bca-f853fcaa3d49",
"isActive": true,
"balance": "$1,092.00",
"picture": "http://placehold.it/32x32",
"age": 34,
"name": "Zamora Mccarthy",
"gender": "male",
"company": "Daido",
"email": "zamoramccarthy@daido.com",
"phone": "+1 (826) 469-2961",
"address": "132 Rutland Road, Crawfordsville, Rhode Island, 3658",
"about": "Elit elit eiusmod enim aliqua incididunt. Labore fugiat ad in excepteur do laborum. Sunt ullamco ex ad veniam nostrud ea ea anim duis. Officia velit Lorem sint esse magna. Nostrud Lorem est do sit ad. Quis laboris culpa cillum veniam enim commodo. Reprehenderit nisi fugiat consectetur non commodo cillum irure laborum duis commodo aliquip.\r\n",
"registered": "2004-01-22T00:07:24 -01:00",
"latitude": -89.913804,
"longitude": 39.005512,
"tags": [
"occaecat",
"ut",
"mollit",
"voluptate",
"ea",
"dolor",
"aute"
],
"friends": [
,
,
{ "id": 2, "name": "Anastasia Lopez" } ],
"randomArrayItem": "cherry"
}
]
btw it is taken from: http://www.json-generator.com/
... just create a new doc in the UI and paste it in there, click save. It will complain and not save, but it also doesn't tell you it's not saved.