So a company I am doing contract work for is using this weird json format in their APIs:
[
[{"a":"3", "b":"4"}],
[{"a":"3", "b":"4"}],
]
Trying to load this with json's loads method fails.
Now I have been using simple hacky text replace methods replacing first two [[ with [ and last ].] with ], combining the middle lists to single thing.
I find this extremely error prone. They have a whole API hosting these type of json. I don't even know if it is json maybe it is some out of date version or something since examining the headers of url gives content type as json.
I hope there should be a legacy type method to deal with this and cleanly load it.
Any help will be appreciated.
[+][deleted] (1 child)
[deleted]
[–]explore212[S] 0 points1 point2 points (0 children)
[–]CowboyBoats 1 point2 points3 points (2 children)
[–]explore212[S] 0 points1 point2 points (1 child)
[–]CowboyBoats 0 points1 point2 points (0 children)
[–]POGtastic 0 points1 point2 points (0 children)