Comments (3)
It seems to be the correct bahaviour. TJSONValue.ToString is not intended to produce correct JSON but only for debug purpouse .
The correct way to get correct encoded JSON is TJSONValue.ToJSON.
Can you give me a mve of your issue?
from delphimvcframework.
I have attached an example. I believe the problem lies in converting UTF-8 in RESTClient.
To simulate. Run the server. Open Client and click Execute.
Special characters are not converted.
from delphimvcframework.
Hi Ezequiel,
the "garbage" you see is the JSON encoded string. You have to parse that
string as JSON and then get the error message.
Since some months I added a small authomatism about it. Check the attached
project.
P.S. Did you have some tested code to implement output compression in
DMVCFramework? I've a middleware to do that, but still not tested enough.
Let me know.
See you
DT
2016-09-12 19:49 GMT+02:00 Ezequiel Juliano Müller <[email protected]
:
DMVCError.zip
https://github.com/danieleteti/delphimvcframework/files/467973/DMVCError.zipI have attached an example. I believe the problem lies in converting UTF-8
in RESTClient.To simulate. Run the server. Open Client and click Execute.
Special characters are not converted.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#49 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABXMpIEqhPWuzr1rcZDBscBS9clK0ndFks5qpZCugaJpZM4J1QMA
.
Daniele Teti
CEO
bit Time Professionals
web: www.bittimeprofessionals.it http://www.bittime.it
blog: www.danieleteti.it
books: www.danieleteti.it/delphi-cookbook
mobile: +39 3496626822
office: +39 06 83393029
from delphimvcframework.
Related Issues (20)
- Querystring parameter is placed in context.request.body - but only on GET, DELETE and OPTIONS HOT 1
- Wrong MVCProduces attribute on TMVCJSONRPCController.GetPublishedMethodList
- FireDac Exception when running the articles_crud_server and articles_crud_vcl_client HOT 2
- [Question] Alternative to FireDac usage for RPC calls to DB Query HOT 1
- Where is the ObjectsMappers unit?
- MVCFramework.Signal not in package dmvcframeworkRT
- Use LIB suffix 120 in SwagDoc
- Apache routing broken HOT 2
- JsonToDataset error HOT 1
- Method EMVCActiveRecordNotFound.AfterConstruction Variable FHTTPStatusCode is undeclared HOT 1
- Can't compile in Delphi 10.2 MVCFramework.ActiveRecord; AddTableMap method HOT 4
- TMVCJsonDataObjectsSerializer : should calls "ADataSet.first" ? HOT 4
- TMVCJsonDataObjectsSerializer.JsonObjectToDataSet not recognises ftExtended DataType
- Possible wrong http error code when authenticating HOT 1
- JWT Add Algorithms: RS256, RS384 & RS512 HOT 2
- [treatment for socket error]: log the error for socket and treat the Indy's memory leak bug
- Failed to serialize filtered dataset
- Receive Data Urls HOT 1
- MVCFramework BodyFor serializer does not work if type is TArray<Int64> HOT 1
- Not showing Cors headers in V.3.4.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delphimvcframework.