JSONObject error with JSON Connectors
I am wanting to pull data from the Cisco Meraki API (http://postman.meraki.com/ and http://meraki.io/ for more details) and the long and short of it is that most of their JSON comes back wrapped in square brackets []. (Anything that is a List of something).
With all the JSON connectors in DOMO I get an error -- A JSONObject text must begin with '{' at 1 [character 2 line 1]
Well, that's not really true and there isn't anything I do to get rid of the [ and the white space. Of course the Meraki JSON that is returned passes all the JSON validity checkers.
Does anyone know of a work around or can I get the attention of one of the wonderful DOMO developers to make a tweak the JSON parsing to allow [JSON] please?
Comments
-
Hi Sean,
One workaround would be to handle the JSON response in R and upload the resulting dataframe to Domo using the DomoR package.
Hope this helps,
Brian
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.0 -
Oof. I think I'd rather just use python to parse the data and spit out a CSV.
I already used Python to remove the brackets that the connector doesn't like but now it puked on the next bit.
0 -
Support helped me work through this!
1) The error message is just not a good error message. What it is really saying is "We can't get your file".
2) As of right now the Connector inline help says you can use an HTTP connection. This is not the case. HTTPS is supported. That's why it couldn't get my file.
3) It turns out I didn't need a line reader with this data.
So yes, an array with JSON is ok! [] all day long.
Shout out to Justin for the help.0
Categories
- 11K All Categories
- 5 Private Company Board
- 2 APAC User Group
- 12 Welcome
- 42 Domo News
- 9.9K Using Domo
- 2K Dataflows
- 2.5K Card Building
- 2.2K Ideas Exchange
- 1.2K Connectors
- 349 Workbench
- 267 Domo Best Practices
- 12 Domo Certification
- 474 Domo Developer
- 51 Domo Everywhere
- 110 Apps
- 726 New to Domo
- 85 Dojo
- Domopalooza
- 1.1K 日本支部
- 4 道場-日本支部へようこそ
- 29 お知らせ
- 65 Kowaza
- 301 仲間に相談
- 664 ひらめき共有