× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello All,

I am working on a project to create a web service to do some basic CRUD stuff to a file. This is more of a proof of concept to create a roadmap to web service front end a bunch of maintenance programs in the future.

I am creating a REST web service but in this case, when performing an update or insert, the JSON payload of the record is coming via a query parm versus in the body data itself. I've followed some online examples and I am able to successfully pull the QUERY_STRING environment variable and extract out the bits that I need.

My issue lies in that when I get the JSON data, it's encoded.

So, instead of this (just a snippet for example purposes):
{"EPNAME":"ZZ:ValleyGreen"

I get this:
%7B%22EPNAME%22%3A%22ZZ%3AValleyGreen%22

When I later try and take the JSON and blow it in to a data structure using data-into, it fails.

Am I doing something wrong? If sent via the normal body of the post/put, would it still be escaped? I can push for that to be changed if it makes life easier, I am just sort of working within s framework provided to me. Or perhaps it just needs escaped to the readable format before trying data-into?

Thanks for any guidance you can provide.

Brian

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.