
Lab #9: Define a Juicer object

Create a JSON Schema for a Juicer. Here is an
example of an XML-formatted Juicer:

<juicer>
    <SKU>439403</SKU>
    <name>Omega Juicer</name>
    <description>
        This heavy-duty, American-made juicer has a powerful 
        GE motor that spins at 3,600 rpm to extract 20% - 30% 
        more juice than pulp ejector models (according to 
        independent laboratory tests). Large capaciy bowl hold 
        a full 1-2 quarts of fruits or vegetables - compared to 
        just one pint for many brands. Easy-cleaning design with 
        lift-out disposable filter.
    </description>
    <cost>234.00</cost>
    <retailer>http://www.boschcanada.com/omega.htm</retailer>
    <warranty>1 yr. Limited Warranty</warranty>
    <weight>4 pounds</weight>
</juicer>

Notes: 

1. The value of SKU must be a 6-digit value.
How will you express that constraint?

2. The value of retailer must be a URL. How
will you express that constraint?

3. JSON does not allow multiline strings!

4. Remember to use anchors in regular expressions.