Add real support and exported json_to_val function.
json_loads requires an object
Merge pull request #3 from flowroute/real

Export json_to_val and handle real values