Parses a JSON string representation of a Rectangle and returns an object.
A JSON string, either in the form [x,y,width,height] or {"x": 0, "y": 0, "width": 10, "height": 10}
[x,y,width,height]
{"x": 0, "y": 0, "width": 10, "height": 10}
A parsed Point.
Parses a JSON string representation of a Rectangle and returns an object.