JSON stylesheet language transformation
First Claim
1. A method for transforming JavaScript Object Notation (JSON) data, the method comprising:
- receiving, at a computer, a first object specified using JavaScript Object Notation (JSON), the first object having a set of one or more attributes, each attribute being of a predetermined JSON data type and having at least one value;
receiving, at the computer, a second object specified using JavaScript Object Notation, the second object having a set of one or more attributes each corresponding to at least one attribute in the set of one or more attributes of the first object and having at least one value defining one or more transformations,wherein receiving, at the computer, the second object comprises receiving an attribute of an object specified using JavaScript Object Notation having a value that defines one or more tests that define whether the one or more transformations are applicable to the first object;
determining, by the computer, a positive evaluation of the one or more tests;
transforming, by the computer, the first object specified using JavaScript Object Notation into a third object specified using JavaScript Object Notation based on the second object specified using JavaScript Object Notation based on the positive evaluation of the one or more tests,wherein the transforming comprises renaming an attribute of the first object, performing one or more numerical operations with respect to a value of an attribute of the first object, performing one or more string operations with respect to a value of an attribute of the first object, adding one or more attributes to an attribute of the first object which is also an object, or removing one or more attributes from an attribute of the first object which is also an object; and
storing the third object in a storage device associated with the computer.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems and methods are provided for specifying transformations of JSON objects using other JSON objects. A first object is received specified using JavaScript Object Notation. The first object includes a set of one or more attributes where each attribute is of a predetermined JSON data type and has at least one value. A second object is also received specified using JavaScript Object Notation. The second object includes a set of one or more attributes each corresponding to at least one attribute in the set of attributes of the first object and having at least one value defining one or more transformations. A third object specified using JavaScript Object Notation is generated based on transforming the first object using the second object.
35 Citations
24 Claims
-
1. A method for transforming JavaScript Object Notation (JSON) data, the method comprising:
-
receiving, at a computer, a first object specified using JavaScript Object Notation (JSON), the first object having a set of one or more attributes, each attribute being of a predetermined JSON data type and having at least one value; receiving, at the computer, a second object specified using JavaScript Object Notation, the second object having a set of one or more attributes each corresponding to at least one attribute in the set of one or more attributes of the first object and having at least one value defining one or more transformations, wherein receiving, at the computer, the second object comprises receiving an attribute of an object specified using JavaScript Object Notation having a value that defines one or more tests that define whether the one or more transformations are applicable to the first object; determining, by the computer, a positive evaluation of the one or more tests; transforming, by the computer, the first object specified using JavaScript Object Notation into a third object specified using JavaScript Object Notation based on the second object specified using JavaScript Object Notation based on the positive evaluation of the one or more tests, wherein the transforming comprises renaming an attribute of the first object, performing one or more numerical operations with respect to a value of an attribute of the first object, performing one or more string operations with respect to a value of an attribute of the first object, adding one or more attributes to an attribute of the first object which is also an object, or removing one or more attributes from an attribute of the first object which is also an object; and storing the third object in a storage device associated with the computer. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A non-transitory computer-readable medium storing a computer program product executable by a processor of a computer system for transforming JavaScript Object Notation (JSON) data, the non-transitory computer-readable medium comprising:
-
code for receiving a first object specified using JavaScript Object Notation (JSON), the first object having a set of one or more attributes, each attribute being of a predetermined JSON data type and having at least one value code for receiving a second object specified using JavaScript Object Notation, the second object having a set of one or more attributes each corresponding to at least one attribute in the set of one or more attributes of the first object and having at least one value defining one or more transformations, wherein receiving the second object comprises receiving an attribute of an object specified using JavaScript Object Notation having a value that defines one or more tests that define whether the one or more transformations are applicable to the first object; code for determining a positive evaluation of the one or more tests; and code for transforming the first object specified using JavaScript Object Notation into a third object specified using JavaScript Object Notation based on the second object specified using JavaScript Object Notation based on the positive evaluation of the one or more tests, wherein the transforming comprises renaming an attribute of the first object, performing one or more numerical operations with respect to a value of an attribute of the first object, performing one or more string operations with respect to a value of an attribute of the first object, adding one or more attributes to an attribute of the first object which is also an object, or removing one or more attributes from an attribute of the first object which is also an object. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23)
-
-
24. A system for transforming JavaScript Object Notation (JSON) data, the system comprising:
-
a hardware processor; and a memory storing a set of instructions which when executed by the processor cause the processor to; receive a first object specified using JavaScript Object Notation (JSON), the first object having a set of one or more attributes, each attribute being of a predetermined JSON data type and having at least one value; receive a second object specified using JavaScript Object Notation, the second object having a set of one or more attributes each corresponding to at least one attribute in the set of attributes of the first object and having at least one value defining one or more transformations, wherein receiving the second object comprises receiving an attribute of an object specified using JavaScript Object Notation having a value that defines one or more tests that define whether the one or more transformations are applicable to the first object; determine a positive evaluation of the one or more tests; and transform the first object specified using JavaScript Object Notation into a third object specified using JavaScript Object Notation based on the second object specified using JavaScript Object Notation based on the positive evaluation of the one or more tests, wherein the transforming comprises renaming an attribute of the first object, performing one or more numerical operations with respect to a value of an attribute of the first object, performing one or more string operations with respect to a value of an attribute of the first object, adding one or more attributes to an attribute of the first object which is also an object, or removing one or more attributes from an attribute of the first object which is also an object.
-
Specification