This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
/* To handle(read/write) complex json in dart */ | |
/* Reference https://dev.to/onmyway133/how-to-resolve-deep-json-object-in-dart-5c5l */ | |
/* Usage:- | |
var myjson = '''your strigified json'''; | |
var jsonObject = DartJson(myjson); | |
var jsonObject = DartJson(myjson, customSeperator: '/'); | |
var newObj = jsonObject.read('Employee.Entitlements.GP.Balance'); | |
newObj.read('xyz.abc').raw(); |