Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Hi I was wondering if there is a way to parse json response from a server.

I'm using arduino uno with a wifi shield. Also is it advisable to process json? I read that the uno may have too little memory for this.

share|improve this question
    
You will get better answers quicker asking at the Arduino stack exchange –  Lee Allan yesterday
add comment

1 Answer

up vote 1 down vote accepted

I guess you are communicating with you wifi shield via USART. So you read characters/Strings. Why shouldn't you be able to parse them any way you like? Depending on how trivial your json is you could roll your own parser or have a look at ajson.

Memory should not be a problem as long as your json documents are relatively small (< ~1k).

share|improve this answer
    
Do you have a simple example of arduino parsing a json response efficiently? Thanks –  user1424508 yesterday
    
What efficiency means will depend on your use case. Like @LeeAllan, I suggest you look at the Arduino stackexchange. See for example here. –  nansen 18 hours ago
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.