fixed problem when indexing json inline in POST requests