Symmetrical transformation between structured data and JSON