Class JS5JSON


  • public abstract class JS5JSON
    extends java.lang.Object
    Object JSON
    Since:
    Standard ECMA-262 5th. Edition
    • Constructor Detail

      • JS5JSON

        public JS5JSON()
    • Method Detail

      • parse

        public static JS5Object parse​(JS5String s,
                                      JS5Function reviver)
        function parse(s, reviver) parse a JSON-formatted string.
        Parameters:
        s - The string to be parsed.
        reviver - An optional argument function that can transform parsed values.
        Since:
        Standard ECMA-262 5th. Edition
        See Also:
        JSON
      • stringify

        public static JS5Object stringify​(JS5Object o,
                                          JS5Function filter,
                                          JS5Object indent)
        function stringify(o, filter, indent) serialize an object, array or primitive value.
        Parameters:
        o - The object, array or primitive value to convert to JSON string.
        filter - An optional function that can replace values before stringification.
        indent - An optional argument that specifies am indentation string or number of spaces to use for indentation.
        Since:
        Standard ECMA-262 5th. Edition
        See Also:
        JSON