Parsing resources from JSON.