Re: [whatwg/fetch] Body.json reviver (#104)

Actually what is needed is not really the same callback. What is needed is a way to define transformations and Class assignments to do while parsing the JSON string.
Something like:
 * Value matches this RegExp assign this class.
 * Value contains this tag assign this class.
 * Values matching this tag should not be included.
Basicly an array of
 { matcher: "RegExp", regexp: "...", stdclass:"Date"},
 { matcher: "Tag", tag: "@type", value:"Address", userclass:"Address"}
 { matcher: "Tag", tag: "internal", delete: "true"}



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/104#issuecomment-480713742

Received on Monday, 8 April 2019 07:19:51 UTC