= renamed types and ctor to prevent name clashes
= updated jsonToValueImpl function