Code Monkey home page Code Monkey logo

drf-ujson-renderer's People

Contributors

jacobh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drf-ujson-renderer's Issues

Is unnecessarily escaping backward slashes.

This is what I'm getting;

{"total_answers":0,"tags":[],"i1":{"t":"http:\/\/localhost:8000\/media\/__sized__\/questions\/1-1545844928\/internal\/i1_disappoint-thumbnail-150x150-70.jpg","f":"http:\/\/localhost:8000\/media\/questions\/1-1545844928\/internal\/i1_disappoint.jpg"}

See the escape of the slashes. Unnecessary. Why is this happening? Am I missing some setting?

Question dates

I'm curios, the drf serializer has a lot of extra code to handle dates, datetimes, timedeltas and other objects, where this one handles none of them. So would this work as a replacement for the default one?

add config options to calls to ujson

there are several options that can be passed to the ujson calls, e.g.:
encode_html_chars, ensure_ascii, double_precision, escape_forward_slashes, indent

it will be a nice feature to have config where those options can be specified.

Updating PyPI package

Would you mind updating the PyPI package? It's a bit outdated - it's not including the parser for example.

Is this package still maintained?

I don't see any updates for 4 years and a recent PR (#12) hasn't been commented on. I'm just wondering if this package is maintained and safe to use for new projects or if it should be considered dead.

Thanks.

ujson breaks BrowsableAPIRenderer

I noticed this being an issue in the past #4, however, it seems it is still causing issues.

The rendering displays the json all on a single line and links are presented as {"user":"http:\/\/127.0.0.1:8000\/user\/"}

Using:

  • Django (1.11.5)
  • djangorestframework (3.7.3)

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.