0

I was performing a JSON file encoding in my project and noticed that the method for encoding is synchronous. While discussing this with a friend, he questioned whether a very large JSON file could cause some lag/delay due to this synchronous method. Is there any type of JSON encoding that is not synchronous for such cases?

2
  • 2
    Are you asking if there already exists a pre-made solution for async json, or are you asking if you can program your own solution? Commented Jul 9 at 13:51
  • @JohnGordon Hello, I'm asking if there is already a way to solve this Commented Jul 9 at 13:55

1 Answer 1

2

I think you should use Isolate for large Json encode/decode. example https://docs.flutter.dev/cookbook/networking/background-parsing

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