You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.
I have an array of strings in my json like following...
{"userId":1, "rooms":["4","2","3]}
And I declared json like
-json({user, {string, "userId"},{list,"rooms",[{default,[ ]]}}})
but it is giving me error when trying to use to_json method
[Reason : {{case_clause,{error,"rooma",throw,{invalid_list_item,<<"4">>}}},[{ejson_encode,convert,5,[{file,"src/ejson_encode.erl"},{line,80}]},{ejson_encode,encode1,3,[{file,"src/ejson_encode.erl"},{line,53}]},{ejson_encode,encode,3,[{file,"src/ejson_encode.erl"},{line,32}]},{ejson,to_json,3,[{file,"src/ejson.erl"},{line,82}]}, .............
The text was updated successfully, but these errors were encountered: