Is it possible to write a JSON parser without using recursion?

Is it possible to write a JSON parser without using recursion? If so, what approach would you suggest?

+3
source share
2 answers

It can be reproduced by any recursive code with an equivalent iterative implementation.

This question describes it pretty well: Is it possible to remove recursion from this function?

+4
source

James - . , , . , n , .

, JSON, , . , :

  • , ( 99% JSON)
  • " ", , n -depth scenarios
  • n -depth, .

, - ( JSON, , ). . , DOWN UP, . , , , , .

+1

Source: https://habr.com/ru/post/1755543/


All Articles