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
I would like to read the content of a JSON file that is formatted either in "array" mode ([{"id": "79f4b5801", "owner": {"id": 251, "name": "titi toto"}}]') or in JSON mode without the "[]" ('{"id": "79f4b5801", "owner": {"id": 251, "name": "titi toto"}}').
With the square brackets, the result of the following code is ok :
I don't have a solution for getting the right result without the square brackets, and for the moment I'm forced to use the paste0() to add square brackets.
it seems trivial but I haven't found, with the fromJSON() parameters, how to format the result correctly.
Could you give me an idea?
Thanks a lot!
The text was updated successfully, but these errors were encountered:
Hello,
I would like to read the content of a JSON file that is formatted either in "array" mode (
[{"id": "79f4b5801", "owner": {"id": 251, "name": "titi toto"}}]'
) or in JSON mode without the "[]" ('{"id": "79f4b5801", "owner": {"id": 251, "name": "titi toto"}}'
).With the square brackets, the result of the following code is ok :
id owner.id owner.name
1: 79f4b5801 251 titi toto
Now without square brackets :
id owner
1: 79f4b5801 251
2: 79f4b5801 titi toto
I don't have a solution for getting the right result without the square brackets, and for the moment I'm forced to use the
paste0()
to add square brackets.it seems trivial but I haven't found, with the
fromJSON()
parameters, how to format the result correctly.Could you give me an idea?
Thanks a lot!
The text was updated successfully, but these errors were encountered: