Code Monkey home page Code Monkey logo

Comments (11)

mgholam avatar mgholam commented on July 24, 2024

Please explain more what you mean.

from fastjson.

hasanbayatme avatar hasanbayatme commented on July 24, 2024

Please take a look at: https://msdn.microsoft.com/en-us/library/system.runtime.serialization.surrogateselector(v=vs.110).aspx

from fastjson.

mgholam avatar mgholam commented on July 24, 2024

The whole purpose of fastJSON is that surrogates are not needed.

from fastjson.

hasanbayatme avatar hasanbayatme commented on July 24, 2024

But sometimes, some classes don't need the some properties to be serialized. we need a surrogate for specifying which properties to be serialized.

from fastjson.

mgholam avatar mgholam commented on July 24, 2024

Use XmlIgnore attribute for those properties you don't want to serialize.

from fastjson.

hasanbayatme avatar hasanbayatme commented on July 24, 2024

I don't have access to the class.

EDIT: it is a compiled binary. (Unity Game Engine)

from fastjson.

hasanbayatme avatar hasanbayatme commented on July 24, 2024

I can't modify class source code. because the class is related to the unity game engine, i just want to serialize it to json format.

from fastjson.

mgholam avatar mgholam commented on July 24, 2024

Try and see what happens.

from fastjson.

hasanbayatme avatar hasanbayatme commented on July 24, 2024

What do i try? How do i apply XmlIgnore attribute to a closed source?

from fastjson.

mgholam avatar mgholam commented on July 24, 2024

Try your surrogates.

from fastjson.

hasanbayatme avatar hasanbayatme commented on July 24, 2024

How? does fastjson supports surogate selector?

from fastjson.

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.