Closed cruisemaniac closed 5 years ago
For the code snippet below:
%{id: complex.id, name: complex.name, street: complex.street, locality: complex.locality, city: complex.city, state: complex.state, pincode: complex.pincode, test_payload: { test_key: "test_value" }
Phoenix framework reports a syntax error before: test_key
test_key
The JSON rendered if I remove the sub section (test_payload) and directly list the test_key is valid however.
test_payload
You need to add a % sign before the { to have a valid elixir map.
%
{
what a royal doofus I was! Thanks for this. Not a bug!
Closing.
For the code snippet below:
Phoenix framework reports a syntax error before:
test_key
The JSON rendered if I remove the sub section (
test_payload
) and directly list thetest_key
is valid however.