bug fix on resource/literal values in json payloads