bugfix: refractory JPathParser
add new api for JsonDocument write