Read and parse json def as string