Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Create JSONMapper.java #4391

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/main/java/com/alibaba/fastjson/JSONMapper.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.alibaba.fastjson;

import java.io.InputStreamReader;
import java.io.OutputStreamReader;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStream;
import java.net.URL;


public class JSONMapper {

public <T> readValue(InputStream src, JavaType Class<T> valueType) throws IOException, Exception {
InputStream input = new InputStream(src);
}

public String writeValueAsString(Object value) throws Exception {
String data = (String) value.toString();
return data;
}
}