4 ms·
That's also true of an object parsed with JSON.parse
by zeven7 7y ago
That's also true of an object parsed with JSON.parse
- tracker1 7y agoJSON.parse won't parse a function call/literal. Direct injection would.
- zeven7 7y agoYou're right about that, but I don't think you're following the argument. The argument was that there could be a `SimpleObject` that's limited and parses quicker. A `SimpleObject` wouldn't parse a function call, just like JSON.parse. As OP said, "subset of JS Objects". This subset of JS objects wouldn't support function calls.
- tracker1 7y agoDon't we already have that, plus a transport medium with JSON?