Question: Given the JSON object { sku : VA - 4 3 , size: 5 ft , name: Blue Sky

Given the JSON object {"sku": "VA-43", "size": "5ft", "name": "Blue Sky", "description": "A great product!"} Change it to match the following spec:
1. All values must be lowercase.
2. Values may contain only alphanumeric characters, underscores or dots. All other characters must be replaced with underscores.
3. "description" is a special property, to which none of the above specifications apply.
4. If any value has more than 10 characters, trim it at 10 characters and add three trailing dots.
5. Convert imperial units into metric. For distance, use meters.
Write the transformed object in the text box below:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!