Butt ugly hack and fix of json package error, that dropped closing braces when parsing string to object.