Try to create array string for MongoDB

I have a little problem, i try to create array of string to insert into mongodb. The string is in this form:

"[\"clock_POSTMAN_90\",\"container_customer\",\"container_ssv\",\"weather_POSTMANT\",\"slideshow_general_uuu\",\"languagechanger\",\"appselector\"]"

Is a serializer string, and i want to convert or to something to change into this form:["clock_POSTMAN_90","container_customer","container_ssv","weather_POSTMANT","slideshow_general_uuu","languagechanger","appselector"]

I tried multiple option, parse to JArray, substrings, trim,substring but is ineffective. Any sugestion?

-------------Problems Reply------------

Both the string are same \" is treated as " for more Detail on Escape Sequence go to the link

Category:c# Views:9 Time:2018-12-28
Tags: mongodb

Related post

  • Error when I try to create array of object 2012-04-12

    I am getting quite a bit confused, to me I think the following two implementation are valid (but my syntax has error), but I can not get either one of them to work. This is a year 1 C++ intro class homework, we can not use Vector (or else it will be

  • What is a good way to create a string for crash reporting Win32 C++ that reflects the cause of the crash? 2011-01-06

    We're using Fogbugz for tracking issues and I am in the middle of writing a C++ wrapper around the XML API for Fogbugz. The best practice seems to be to use the "scout" field so that similar/same crashes are just counted but not reported again. To do

  • Create array using for loop 2012-02-02

    I'm trying to generate integer array using for loop. Here is my code: int total = 20; for(int x = 0; x < total; x++) { NSArray arr = [NSArray arrayWithObjects: [NSNumber numberWithInt:total]]; } With the above implementation I get only one object

  • how to create array string 2009-12-02

    i'm having NSMutableArray which containing student info, now i just want to extract student name and their average mark only, so what i did NSMutableArray *stuCollection = [[NSMutableArray alloc] initWithCapacity:[students count]]; for (int i = 0; i

  • Try to create a regex for exctracting website address from a string in java but can't do it properly 2012-02-22

    I'm trying to extract website address from a url using following code public String getWebSiteAddress(String text) { Pattern p = Pattern.compile("\\b([a-z0-9]+(-[a-z0-9]+)*\\.)+[a-z]{2,3}\\b"); //Pattern p = Pattern.compile("^http\\:/[a-zA-Z0-9\\-\\.

  • How to query a Array[String] for a regexp match? 2012-01-13

    i try to query MongoDB via Casbah for a field that is a array of strings with a regexp. For example: I have a Maschine with a list of ips, that are stored as string in the fields ips. Now i want to search for all machines that have the subnet 192.168

  • Creating arrays in for loops 2011-02-25

    I'm starting with a csv variable of column names. This is then exploded into an array, then counted and tossed into a for loop that is supposed to create another array. Every time I run it, it goes into this endless loop that just hammers away at my

  • Create XML string for Web Service 2011-02-25

    I am sending a request to a web service which requires a string containing XML, of which I have been giving an XSD. I've ran xsd.exe and created a class based on this but am unsure of the best way to create the xml string to send, for example a strea

  • any tools of create kml string for google-maps-v3 2010-04-12

    i want to generate some kml string to stroe into database .. and has any simply way to generate this string ? thanks --------------Solutions------------- What do you mean kml string, isnt it an xml file like the one below? <?xml version="1.0" enco

  • Android: Create unique string for file name 2011-02-26

    I'm doing an android application for image viewer. This app will download the image, and store them in a cache folder. So, in the cache folder, the image file name must be unique. Currently, I use String.hashCode() to generate the file name. Are ther

  • Errors when trying to create the string for connecting to a Database (mysql:host=' . DB_HOST . ';dbname=' . DB_DATABASE;) 2012-02-19

    I've seen several examples on the Net using a similar approach but I cannot see why it's failing here. I'm trying to use 2 parameters for DB_HOST and DB_DATABASE that I want to append to a string and assign it to the following variable: External PHP

  • when i try to create a password for my admin account it says: windows cannot change the password 2012-04-25

    I bought this laptop 2 months ago at the very latest from Best Buy. It was the only one they had of this model left and it was the display model. I have recently decided i wanted to put a password on my account, which is the only account and is set u

  • Errors creating a string in c++ 2010-11-30

    Whenever I try to create a string in my header file I get the error: 'string' is not a member of 'std'. I am using the Microsoft Visual c++ express 2010 compiler. Here is my header file: using namespace std; class Person { private: string name; strin

  • Can't get array string resource from XML 2011-04-26

    I have a list of values in my XML file which I would like to select based off a spinner selection. For some reason, using an array-string for the spinner works fine, the values are populated into the spinner. For whatever reason, I cannot get the val

  • Node.js module for MongoDB 2011-10-02

    There are several MongoDB modules available for Node.js in the following link - https://github.com/joyent/node/wiki/modules#wiki-db-nosql-mongo Please, suggest me one (I'd like to know why you choose that one?). --------------Solutions------------- I

  • How to create new fields for customer 2011-12-08

    I am developing a website with magento ver-1.6. I am try to create new fields for customer registration, but it not created. I followed the same way what we followed in ver-1.5. Any variation in create customer fields in 1.6? --------------Solutions-

  • cant create arrays in while loop or if statement? 2012-03-19

    when I try to create arrays in my script I get errors. id[1]=string2; would generate error id[1]=string2: not found I'm guessing it has something to do with the fact that im in a if statement or while loop since the use []? I'm running a VM so attach

  • How to create an AVD for Android 4.0 2011-10-19

    Android 4.0 is now released. I have just updated my ADT plugin and downloaded the 4.0 SDK. But when I try to create an AVD for Android 4.0, Eclipse tells me 'Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder'. I found d

  • Create record example for Quickbooks Online and Intuit Anywhere using Ruby and httparty? 2012-02-07

    Can someone post an example of creating a record in quickbooks online / intuit anywhere, using ruby and httparty? I am working on an integration to a ruby on rails app using intuit anywhere, and am running into an issue with my POST request when atte

  • Unable to create email id for domain. 2013-03-24

    Hey, I get this error when I try to create a email for my domain. Getting error for just one domain but I still get it. I ported here from other service and I need that email account anyhow. The requested account name is already in use or was used in

  • Linq to create a csv string for some values stored in an array of object using c# 2011-04-21

    I have an array of object storing some accounts. 12345631 L1234512 P12345 234556 19090912 J123456 Using Linq and .Net 3.5, I want to create a csv string for accounts starting with L or P and is of 6 characters. Following code creates a csv string but

  • What is the best way to create a string array in python? 2011-06-16

    I'm relatively new to Python and it's libraries and I was wondering how I might create a string array with a preset size. It's easy in java but I was wondering how I might do this in python. So far all I can think of is strs = ['']*size And some how

  • create one addEventListener for all array elements in actionscript 2011-08-07

    I have an array of movieclips that represent buttons the user can click on them, and so I need to use addEventListener function so the click can be handled. I can use a loop and create en addEventListener for each element, I'll have 26 elements in th

  • Create array with empty string using %w[] 2012-10-19

    Using %W I can use %W[a #{} b #{} c], also I can concatenate arrays, but is it possible to create array ['a', '', 'b', '', 'c'] using just %w[]? --------------Solutions------------- A couple of options %W[a b c #{''} z] %W[a b c] << " " (I know

  • How do I create a string from one row of a two dimensional rectangular character array in C#? 2008-10-11

    I have a 2 dimensional array, like so: char[,] str = new char[2,50]; Now, after I've stored contents in both str[0] and str[1], how do I store it in a string[] s = new string[2]; ? I tried s[0] = str[0].ToString(); but that seems to be an error: VC#

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.120 (s). 11 q(s)