Code Monkey home page Code Monkey logo

Comments (3)

danieleteti avatar danieleteti commented on May 14, 2024

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.

ezequieljuliano avatar ezequieljuliano commented on May 14, 2024

DMVCError.zip

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.

danieleteti avatar danieleteti commented on May 14, 2024

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.zip

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.


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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.