synchronizing pouchDB with json data

json, pouchdb, web-services

Solution

PouchDB has a built in method for synchronizing with CouchDB using one- or two-way replication.

I understand that you want to sync with a datasource, which doesn't have a CouchDB compatible API. Then you'll have to write code to perform the synchronization with your specific JSON API.

Problem

I want to create a html page which synchronize JSON data with pouch Db. The JSON data is a response from a web service.I have created a sample html file which can create a pouch Db database.I have created rest web service which gives certain data as response. can any one help me to synchronize these two.

Original source